//1. 公用样式
require("../../assets/css/index.less");
require("../../assets/css/animate.min.css");
//2. 当前页面样式
require("./advertisement.less");

//3. 公用js
let dom = require("../../utils/dom.js");

//4. 当前页面的js
// console.log(dom);

dom.ready(function () {
  //自己的写页面js
  let countdowm = dom.getEle("#countdowm");
  let jump = dom.getEle(".jump");
  // console.log(jump);
  window.setInterval(function () {
    countdowm.textContent == 0
      ? (window.location.href = "register.html")
      : (countdowm.textContent -= 1);
  }, 1000);
  jump.addEventListener("click", function () {
    window.location.href = "register.html";
  });
});
